package toolClass;

public class tool {

    /***
     * 打印倒三角
     * @param line 行数
     */
    public static void printStart(int line) {
        for (int i = line; i >= 1; i--) {
            for (int j = 1; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    /**
     * 阶乘
     *
     * @param num 任意整数
     * @return
     */
    public static long jc(int num) {
        long result = 1;
        for (int i = num; i > 1; i--) {
            result*=i;
        }
        return result;
    }

}
